package java6681.lesson15.usb;
public class USBDemo6681 {
    public static void main(String[] args) {
        //实例化电脑对象
        Computer6681 c = new Computer6681();
        //向电脑中添加鼠标、麦克风和键盘设备
        c.add(new Mouse6681());
        c.add(new Mic6681());
        c.add(new KeyBoard6681());
        c.powerOn();//启动电脑
        System.out.println();
        c.powerOff();//关闭电脑
    }
}
